Generic Routing Encapsulation (GRE)
Disadvantage:
Packet Format:

IP (Transport Protocol)GRE (Encapsulating Protocol)IPX (Carrier Protocol)


Generic Routing Encapsulation (GRE) is a protocol designed for performing encapsulation of one network layer protocol (for example, IP or IPX) over another network layer protocol (for example, IP). GRE uses the tunneling technology and serves as a Layer 3 tunneling protocol of virtual private network (VPN).

A tunnel is a virtual point-to-point connection for transferring encapsulated packets. Packets are encapsulated at one end of the tunnel and decapsulated at the other end.

I. Encapsulation process

1) After receiving an X protocol packet through the interface connected to Group 1, SecPath A submits it to the X protocol for processing.

2) The X protocol checks the destination address field in the packet header to determine how to route the packet.

3) If the packet must be tunneled to reach its destination, SecPath A sends it to the tunnel interface.

4) Upon receipt of the packet, the tunnel interface encapsulates it in a GRE packet. Then, the system encapsulates the packet in an IP packet and forwards the IP packet based on its destination address and the routing table.

  

As an example, Figure 1-3 shows the format of an X packet encapsulated for transmission over an IP tunnel.

Figure 1-3 Format of an X packet encapsulated for transmission over an IP tunnel

  

These are the terms involved:

  Payload: Packet that needs to be encapsulated and transmitted.

  Passenger protocol: Protocol that the payload packet uses, IPX in the example.

  Encapsulation or carrier protocol: Protocol used to encapsulate the payload packet, that is, GRE.

  Delivery or transport protocol: Protocol used to encapsulate the GRE packet and then forward the packet to the other end   of the tunnel, IP in this example.

  

III. Decapsulation process

Decapsulation is the reverse process of encapsulation:

1) Upon receiving an IP packet from the tunnel interface, SecPath B checks the destination address.

2) If the destination is itself, SecPath B strips off the IP header of the packet and submits the resulting packet to the GRE protocol.

3) The GRE protocol checks the key, checksum and sequence number in the packet, and then strips off the GRE header and submits the payload to the X protocol for forwarding.


Protocol no-47


  

  

  


  


Task